<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2007-9-9
  Time: 22:31:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglib.jsp" %>
<html>
<head><title>新建栏目</title></head>
<body>
<s:form action="/admin/catalogManage.do" method="post">
    <table>
        <tr>
            <td>分类名称</td>
            <td>
                <s:text name="catalog.name"/>
            </td>
        </tr>
        <c:if test="${not empty actionBean.catalog.parentCatalog}">
        <tr>
            <td>栏目名称</td>
            <td>
                <s:select name="catalog.parentCatalog.id">
                    <s:options-collection collection="${actionBean.catalogs}" value="id" label="name"/>
                </s:select>
            </td>
        </tr>
        </c:if>
        <tr>
            <td colspan="2">
                <s:hidden name="id"/>
                <s:submit name="addCatalog" value="${param.id>0?'修改':'新建'}"/>
            </td>
        </tr>
    </table>
</s:form>
</body>
</html>